import {KnowledgeReq, NoticeReq, OrderReq, PaymentReq, PlanReq, TrafficReq} from "@/api/dto/modules/req.ts";

export interface Plan extends PlanReq {
    id: 1,
    created_at: string;
    updated_at: string;
    deleted_at?: any;
    name: string;
    show: number;
    type: number;
    period: number;
    traffic: number;
    price: number;
    sort: number;
    discount: number;
    speed_limit: number;
    device_limit: number;
    content: string;
}

export interface Payment extends PaymentReq {
    id: number;
    name: string;
    icon: string;
    payment: string;
    show: number;
}

export interface Order extends OrderReq {
    id: number;
    created_at: string;
    updated_at: string;
    deleted_at?: any;
    user_id: number;
    number: string;
    state: 0;
    price: number;
    pay: number;
    pay_at: string;
    note: string;
    plan_id: number;
    payment_id: number;
    period: number;
}

export interface Notice extends NoticeReq {
    id: number;
    created_at: string;
    updated_at: string;
    deleted_at?: any;
    show: number;
    title: string;
    content: string;
}

export interface Knowledge extends KnowledgeReq {
    id: number;
    title: string;
    category: number;
    language: string;
    show: number;
    sort: number;
}
export interface Traffic extends TrafficReq {
    record_at: number;
    user_id: number;
    server_rate: number;
    u: number;
    d: number;
}
export interface Subscribe {
    uuid: string;
    plan_id: number;
    token: string;
    expired_at: number;
    u: number;
    d: number;
    transfer_enable: number;
    email: string;
    plan: Plan;
    subscribe_url: string;
    reset_day: number;
}
